/*
 Navicat Premium Data Transfer

 Source Server         : sqlservice
 Source Server Type    : SQL Server
 Source Server Version : 10501600
 Source Host           : macys.f3322.net:1433
 Source Catalog        : newhis
 Source Schema         : dbo

 Target Server Type    : SQL Server
 Target Server Version : 10501600
 File Encoding         : 65001

 Date: 17/11/2020 09:56:21
*/


-- ----------------------------
-- Table structure for zz_pay_order_out
-- ----------------------------
IF EXISTS (SELECT * FROM sys.all_objects WHERE object_id = OBJECT_ID(N'[dbo].[zz_pay_order_out]') AND type IN ('U'))
	DROP TABLE [dbo].[zz_pay_order_out]
GO

CREATE TABLE [dbo].[zz_pay_order_out] (
  [out_id] int  IDENTITY(1,1) NOT NULL,
  [order_id] varchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
  [sys_seqno] varchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
  [amount] numeric(10,2)  NULL,
  [create_date] datetime DEFAULT (getdate()) NULL,
  [epay_rrn] varchar(32) COLLATE Chinese_PRC_CI_AS  NULL,
  [result_code] varchar(30) COLLATE Chinese_PRC_CI_AS  NULL,
  [result_message] varchar(50) COLLATE Chinese_PRC_CI_AS  NULL
)
GO

ALTER TABLE [dbo].[zz_pay_order_out] SET (LOCK_ESCALATION = TABLE)
GO

EXEC sp_addextendedproperty
'MS_Description', N'济宁银行支付 退款表',
'SCHEMA', N'dbo',
'TABLE', N'zz_pay_order_out'
GO


-- ----------------------------
-- Auto increment value for zz_pay_order_out
-- ----------------------------
DBCC CHECKIDENT ('[dbo].[zz_pay_order_out]', RESEED, 1)
GO


-- ----------------------------
-- Primary Key structure for table zz_pay_order_out
-- ----------------------------
ALTER TABLE [dbo].[zz_pay_order_out] ADD CONSTRAINT [PK__zz_pay_o__D7CC77D82CDF35F4] PRIMARY KEY CLUSTERED ([out_id])
WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON)  
ON [PRIMARY]
GO

